package com.uzai.console.mapper;

import com.uzai.console.entity.PyqFollowedComment;
import com.uzai.console.entity.PyqFollowedContent;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PyqFollowedCommentMapper {
    int deleteById(Long id);

    int deleteBeforeDay(@Param("beforeDay") Integer beforeDay);

    int insert(PyqFollowedComment record);

    int insertSelective(PyqFollowedComment record);

    PyqFollowedComment selectById(Long id);

    PyqFollowedComment selectByDeviceUniqueIdAndSnsIdAndCommentId(@Param("deviceUniqueId") Long deviceUniqueId, @Param("snsId") String snsId, @Param("commentId") String commentId);

    List<PyqFollowedComment> selectByDeviceUniqueIdAndSnsId(@Param("deviceUniqueId") Long deviceUniqueId, @Param("snsId") String snsId);

    int updateByIdSelective(PyqFollowedComment record);

    int updateById(PyqFollowedComment record);
}